<div class='right-cont-less right-cont wrap-lmsg' ng-controller='LeaveMsgActivity'>
	<div class='title'>活动留言<i class='fa fa-spin fa-spinner' ng-if='loading'></i></div>
	<div class='content'>
		<ul class='nav nav-tabs nav-tabs-a'>
			<li class='active'>
				<a data-target='#list-all' data-toggle='tab'>全部</a>
			</li>
			<li><a data-target='#list-unknown' data-toggle='tab'>待审核</a></li>
			<li><a data-target='#list-yes' data-toggle='tab'>已通过</a></li>
			<li><a data-target='#list-no' data-toggle='tab'>未通过</a></li>
			<!-- <div class='box-btn'>
				<button class='btn btn-primary' ng-click='out_excel()'>导出</button>
			</div>
			<div class='box-search'>
				<div class='input-group'>
					<input type='text' class='form-control' ng-model='keyword'>
					<span class='input-group-btn'>
						<button class='btn btn-success' type='button' ng-click='load_data(1)'>搜索</button>
					</span>
				</div>
			</div> -->
		</ul>

		<div class='tab-content tab-content-a'>
			<div class='tab-pane fade in active' id='list-all'>
				<table class='table table-list'>
					<tr>
						<td>留言ID<span class='fa fa-sort'></span></td>
						<td>用户ID<span class='fa fa-sort'></span></td>
						<td>用户昵称<span class='fa fa-sort'></span></td>
						<td>活动标题<span class='fa fa-sort'></span></td>
						<td>留言内容<span class='fa fa-sort'></span></td>
						<td>提交时间<span class='fa fa-sort'></span></td>
						<td>状态<span class='fa fa-sort'></span></td>
						<td>操作<span class='fa fa-sort'></span></td>
					</tr>
					<tr ng-repeat='item in list'>
						<td>{{item.id}}</td>
						<td>{{item.user_id}}</td>
						<td>{{item.nickname}}</td>
						<td>{{item.relate_info.title}}</td>
						<td>{{item.sim_content}}</td>
						<td>{{item.create_date}}</td>
						<td>
							<span class='label label-primary' ng-if='item.status == 0'>
								未审核
							</span>
							<span class='label label-success' ng-if='item.status == 1'>
								已通过
							</span>
							<span class='label label-warning' ng-if='item.status == 2'>
								未通过
							</span>
						</td>
						<td>
							<button class='btn btn-primary btn-xs' ng-click='detail_item(item)'>详情</button>
							<button class='btn btn-success btn-xs' 
								ng-if='item.status == 0 || item.status == 2' ng-click='update_item(item, {status: 1})'>
								通过
							</button>
							<button class='btn btn-warning btn-xs' 
								ng-if='item.status == 0 || item.status == 1' ng-click='update_item(item, {status: 2})'>
								驳回
							</button>
							<button class='btn btn-danger btn-xs' ng-click='update_item(item, {status: -1})'>删除</button>
						</td>
					</tr>
				</table>
			</div>
			<div class='tab-pane fade in' id='list-unknown'>
				<table class='table table-list'>
					<tr>
						<td>留言ID<span class='fa fa-sort'></span></td>
						<td>用户ID<span class='fa fa-sort'></span></td>
						<td>用户昵称<span class='fa fa-sort'></span></td>
						<td>活动标题<span class='fa fa-sort'></span></td>
						<td>留言内容<span class='fa fa-sort'></span></td>
						<td>提交时间<span class='fa fa-sort'></span></td>
						<td>状态<span class='fa fa-sort'></span></td>
						<td>操作<span class='fa fa-sort'></span></td>
					</tr>
					<tr ng-repeat='item in list'>
						<td>{{item.id}}</td>
						<td>{{item.user_id}}</td>
						<td>{{item.nickname}}</td>
						<td>{{item.relate_info.title}}</td>
						<td>{{item.sim_content}}</td>
						<td>{{item.create_date}}</td>
						<td>
							<span class='label label-primary' ng-if='item.status == 0'>
								未审核
							</span>
							<span class='label label-success' ng-if='item.status == 1'>
								已通过
							</span>
							<span class='label label-warning' ng-if='item.status == 2'>
								未通过
							</span>
						</td>
						<td>
							<button class='btn btn-primary btn-xs' ng-click='detail_item(item)'>详情</button>
							<button class='btn btn-success btn-xs' 
								ng-if='item.status == 0 || item.status == 2' ng-click='update_item(item, {status: 1})'>
								通过
							</button>
							<button class='btn btn-warning btn-xs' 
								ng-if='item.status == 0 || item.status == 1' ng-click='update_item(item, {status: 2})'>
								驳回
							</button>
							<button class='btn btn-danger btn-xs' ng-click='update_item(item, {status: -1})'>删除</button>
						</td>
					</tr>
				</table>
			</div>
			<div class='tab-pane fade in' id='list-yes'>
				<table class='table table-list'>
					<tr>
						<td>留言ID<span class='fa fa-sort'></span></td>
						<td>用户ID<span class='fa fa-sort'></span></td>
						<td>用户昵称<span class='fa fa-sort'></span></td>
						<td>活动标题<span class='fa fa-sort'></span></td>
						<td>留言内容<span class='fa fa-sort'></span></td>
						<td>提交时间<span class='fa fa-sort'></span></td>
						<td>状态<span class='fa fa-sort'></span></td>
						<td>操作<span class='fa fa-sort'></span></td>
					</tr>
					<tr ng-repeat='item in list'>
						<td>{{item.id}}</td>
						<td>{{item.user_id}}</td>
						<td>{{item.nickname}}</td>
						<td>{{item.relate_info.title}}</td>
						<td>{{item.sim_content}}</td>
						<td>{{item.create_date}}</td>
						<td>
							<span class='label label-primary' ng-if='item.status == 0'>
								未审核
							</span>
							<span class='label label-success' ng-if='item.status == 1'>
								已通过
							</span>
							<span class='label label-warning' ng-if='item.status == 2'>
								未通过
							</span>
						</td>
						<td>
							<button class='btn btn-primary btn-xs' ng-click='detail_item(item)'>详情</button>
							<button class='btn btn-success btn-xs' 
								ng-if='item.status == 0 || item.status == 2' ng-click='update_item(item, {status: 1})'>
								通过
							</button>
							<button class='btn btn-warning btn-xs' 
								ng-if='item.status == 0 || item.status == 1' ng-click='update_item(item, {status: 2})'>
								驳回
							</button>
							<button class='btn btn-danger btn-xs' ng-click='update_item(item, {status: -1})'>删除</button>
						</td>
					</tr>
				</table>
			</div>
			<div class='tab-pane fade in' id='list-no'>
				<table class='table table-list'>
					<tr>
						<td>留言ID<span class='fa fa-sort'></span></td>
						<td>用户ID<span class='fa fa-sort'></span></td>
						<td>用户昵称<span class='fa fa-sort'></span></td>
						<td>活动标题<span class='fa fa-sort'></span></td>
						<td>留言内容<span class='fa fa-sort'></span></td>
						<td>提交时间<span class='fa fa-sort'></span></td>
						<td>状态<span class='fa fa-sort'></span></td>
						<td>操作<span class='fa fa-sort'></span></td>
					</tr>
					<tr ng-repeat='item in list'>
						<td>{{item.id}}</td>
						<td>{{item.user_id}}</td>
						<td>{{item.nickname}}</td>
						<td>{{item.relate_info.title}}</td>
						<td>{{item.sim_content}}</td>
						<td>{{item.create_date}}</td>
						<td>
							<span class='label label-primary' ng-if='item.status == 0'>
								未审核
							</span>
							<span class='label label-success' ng-if='item.status == 1'>
								已通过
							</span>
							<span class='label label-warning' ng-if='item.status == 2'>
								未通过
							</span>
						</td>
						<td>
							<button class='btn btn-primary btn-xs' ng-click='detail_item(item)'>详情</button>
							<button class='btn btn-success btn-xs' 
								ng-if='item.status == 0 || item.status == 2' ng-click='update_item(item, {status: 1})'>
								通过
							</button>
							<button class='btn btn-warning btn-xs' 
								ng-if='item.status == 0 || item.status == 1' ng-click='update_item(item, {status: 2})'>
								驳回
							</button>
							<button class='btn btn-danger btn-xs' ng-click='update_item(item, {status: -1})'>删除</button>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<div class='box-page' ng-bind-html='pageHtml'></div>
	</div>

	<!-- 留言详情模态窗 -->
    <div class='modal fade lmsg-detail'>
        <div class='modal-dialog'>
            <div class='modal-content' align='center'>
                <div class='modal-header'>
                    留言详情
                    <a class='close' data-dismiss='modal'>&times;</a>
                </div>
                <div class='modal-body'>
                    <table class='table-form line-high'>
                        <tr class='line-high'>
                            <td class='td-label'>用户昵称:</td>
                            <td>{{nItem.nickname}}</td>
                            <td class='td-label'>真实姓名:</td>
                            <td>{{nItem.truename}}</td>
                            <td class='td-label'>留言时间:</td>
                            <td>{{nItem.create_date}}</td>
                        </tr>
                        <tr>
                        	<td class='td-label' style='vertical-align: top'>展示位置:</td>
                        	<td colspan='5'>
                        		<span class='box-radio'>
                        			<input type='radio' ng-model='nItem.show_place' name='show_place' value='1'>首页
                        		</span>
                        		<span class='box-radio'>
                        			<input type='radio' ng-model='nItem.show_place' name='show_place' value='2'>详情页
                        		</span>
                        	</td>
                        </tr>
                        <tr>
                        	<td class='td-label' style='vertical-align: top'>留言内容:</td>
                        	<td colspan='5'>{{nItem.content}}</td>
                        </tr>
                        <tr>
                        	<td class='td-label' style='vertical-align: top'>回复内容:</td>
                        	<td colspan='5'>
                        		<textarea class='form-control' ng-model='nItem.reply_cont'></textarea>
                        	</td>
                        </tr>
                    </table>
                </div>
                <div class='modal-footer'>
                    <button class='btn btn-primary btn-sm btn-w-sm' ng-click='reply_item()'>确认</button>
                    <button class='btn btn-default btn-sm btn-w-sm' data-dismiss='modal'>取消</button>
                </div>
            </div>
        </div>
    </div>
</div>